package com.example.service2.feign;

import com.example.service2.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @oauth Yeohwah
 * @createDate 2021/10/16
 * @info
 */
@FeignClient(
        name = "service1",
        path = "/service",
        fallback = TestFeignServiceFallback.class
        /*,configuration = FeignConfig.class*/)
public interface TestFeignService {

    @RequestMapping("/info")
    String info();

    @RequestMapping("/save")
    String save();

    @RequestMapping("/save1")
    String save1();

    @RequestMapping("/save2")
    String save2();
}
